Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)

Поиск
Список
Период
Сортировка
От Chris Bartlett
Тема Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)
Дата
Msg-id p06240806cc2a31e90c8c@[192.168.200.4]
обсуждение исходный текст
Ответ на Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список pgsql-general
At 8:35 PM +0100 16/7/12, Daniele Varrazzo wrote:
>Even without this quirk, the problem of mapping timestamps to other
>languages data types could be an even stronger design factor. I've
>personally settled for 9999-12-31 which is python's datetime.max, maps
>ok to doubles and won't create problems for almost 8000 years.
>
>
>-- Daniele


Stephane Faroult ('The Art of SQL') says that dates so far in the
future can throw off query planners. He explains it nicely here:
http://www.youtube.com/watch?v=gu0WJJXgEFM

Interesting discussion, thanks.

Chris


В списке pgsql-general по дате отправления:

Предыдущее
От: Brar Piening
Дата:
Сообщение: Re: Create stored procedure from C#.net
Следующее
От: Chris Angelico
Дата:
Сообщение: Re: Replication/cloning: rsync vs modification dates?